body {
  /* 菜单样式 */
  /* 顶部导航 */
  /* 数据概览卡片 */
  /* 筛选工具栏 */
  /* 商品表格 */
  /* 状态标签 */
  /* 按钮样式 */
  /* 分页 */
  /* 响应式设计 */
  /* 模态框内容样式 */
  /* 模态框头部样式 */
  /* 关闭按钮样式 */
  /* 表单网格样式 */
  /* 表单组样式 */
  /* 必选标记样式 */
  /* 全宽表单组样式 */
  /* 图片上传区域样式 */
  /* 模态框底部样式 */
  /* 取消按钮样式 */
  /* 保存按钮样式 */
  /* 模态框整体样式 */
  /* 表单样式 */
  /* 模态框底部按钮样式 */
  /* 图片上传区域样式 */
}
body .admin-sidebar {
  width: 250px;
  background: #001529;
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}
body .admin-sidebar .admin-header {
  padding: 20px;
}
body .logo-container {
  text-align: center;
}
body .logo {
  width: 120px;
  height: auto;
}
body .admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
body .admin-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #fff;
}
body .admin-menu li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
body .badge {
  background: #ff4d4f;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: auto;
}
body .admin-menu {
  list-style: none;
}
body .admin-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}
body .admin-menu a i {
  margin-right: 14px;
  font-size: 16px;
  width: 16px;
  text-align: center;
}
body .admin-menu li.active a {
  color: #fff;
  background: #1890ff;
}
body .admin-menu a:hover {
  color: #fff;
  background: rgba(24, 144, 255, 0.1);
}
body .badge {
  background: #ff4d4f;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: auto;
}
body .admin-main {
  margin-left: 250px;
  padding: 24px;
  min-height: 100vh;
}
body .admin-search {
  position: relative;
  width: 100%;
  display: flex;
  margin-bottom: 24px;
}
body .Search {
  width: 10%;
  padding: 10px 4px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 15px;
}
body .admin-search input {
  width: 50%;
  padding: 8px 16px;
  padding-right: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}
body .data-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
body .data-card {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}
body .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e6f7ff;
  color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}
body .card-icon.warning {
  background: #fff7e6;
  color: #fa8c16;
}
body .card-icon.success {
  background: #f6ffed;
  color: #52c41a;
}
body .card-info h3 {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}
body .card-info p {
  color: #333;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}
body .filter-section {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  margin-top: 24px;
}
body .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
body .filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
body .filter-item select,
body .filter-item input {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  min-width: 120px;
}
body .price-input {
  width: 100px;
}
body .action-group {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
body .product-table {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: auto;
}
body table {
  width: 100%;
  border-collapse: collapse;
}
body th,
body td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
body th {
  background: #fafafa;
  font-weight: 500;
}
body .product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 150px;
}
body .product-info img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
body .product-detail h4 {
  margin: 0 0 4px;
  font-size: 14px;
}
body .product-detail p {
  margin: 0;
  color: #666;
  font-size: 12px;
}
body .status-tag {
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
}
body .status-active {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
body .btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .btn-primary {
  background: #1890ff;
  color: #fff;
  margin-left: 100px;
}
body .btn-export {
  background: #fff;
  border: 1px solid #d9d9d9;
}
body .btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
}
body .btn-icon:hover {
  color: #1890ff;
}
body .pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
body .page-controls {
  display: flex;
  gap: 8px;
}
body .page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
body .page-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}
@media screen and (max-width: 1200px) {
  body .data-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  body .data-overview {
    grid-template-columns: 1fr;
  }
  body .filter-group {
    flex-direction: column;
  }
  body .action-group {
    flex-direction: column;
    width: 100%;
  }
  body .btn {
    width: 100%;
  }
}
body .btn-action {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
  transition: all 0.3s;
}
body .btn-action.edit {
  background: #e6f7ff;
  color: #1890ff;
}
body .btn-action.edit:hover {
  background: #bae7ff;
}
body .btn-action.view {
  background: #f6ffed;
  color: #52c41a;
}
body .btn-action.view:hover {
  background: #d9f7be;
}
body .btn-action.delete {
  background: #fff1f0;
  color: #ff4d4f;
}
body .btn-action.delete:hover {
  background: #ffa39e;
}
body .modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
body .modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
body .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
body .modal-header h3 {
  margin: 0;
}
body .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
body .close-btn:hover {
  color: #333;
}
body .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
body .form-group {
  display: flex;
  flex-direction: column;
}
body .form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}
body .form-group input,
body .form-group select,
body .form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
body .required {
  color: red;
}
body .full-width {
  grid-column: 1 / -1;
}
body .image-upload {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}
body .image-upload i {
  font-size: 24px;
  color: #999;
  margin-bottom: 10px;
}
body .image-upload p {
  margin: 0;
  color: #666;
}
body .modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
body .modal-footer button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}
body .btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}
body .btn-secondary:hover {
  background-color: #ccc;
}
body .btn-primary {
  background-color: #007bff;
  color: white;
}
body .btn-primary:hover {
  background-color: #0056b3;
}
body .modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
body .modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 5px;
}
body .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
body .modal-header h3 {
  margin: 0;
}
body .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}
body .form-group {
  display: flex;
  flex-direction: column;
}
body .form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}
body .form-group input,
body .form-group select,
body .form-group textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
body .required {
  color: red;
}
body .full-width {
  grid-column: 1 / -1;
}
body .modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
body .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
body .btn-secondary {
  background-color: #ccc;
  margin-right: 10px;
}
body .btn-primary {
  background-color: #007bff;
  color: white;
}
body .image-upload {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}
body .image-upload i {
  font-size: 24px;
  margin-bottom: 10px;
}
body .image-upload p {
  margin: 0;
}
